
export class formModel {
    constructor(formPathOrName: string, callback: (formOwner) => void, bundleKey: string) {
        this.formPathOrName = formPathOrName;
        this.callback = callback;
        this.bundleKey = bundleKey;
    }
    public formPathOrName: string;
    public callback: (formOwner: Node) => void;
    public bundleKey: string;

    public get formName(): string {
        let names = this.formPathOrName.split("/");
        let formName = names[names.length - 1];
        return formName;
    }
}